<template>
  <van-popup position="right" :value="heiShow">
    <van-nav-bar
      left-arrow
      title="编辑昵称"
      @click-left="$emit('update:heiShow', false)"
    >
      <!-- @click-left="$emit('input', false)"  在父组写v-model传值 -->
      <template #right>
        <div style="color:#f40">提交</div>
      </template>
    </van-nav-bar>
  </van-popup>
</template>

<script>
export default {
  name: 'Heihei',
  props: ['heiShow'],
  // model: {
  //   prop: 'Heishou',
  //   event: 'input'
  // },
  data () {
    return {}
  }
}
</script>

<style lang="less" scoped>
.van-popup {
  width: 100%;
  height: 100%;
}
::v-deep .van-field__control {
  background-color: #999;
}
</style>
